package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author hua
 * @since 2024-11-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_warehouse_rent")
public class WarehouseRentDo extends Model<WarehouseRentDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("status")
    private int status;

    @TableField("rule_name")
    private String ruleName;

    /**
     * 仓租类型 0 1 2
     */
    @TableField("rent_type")
    private Integer rentType;

    /**
     * 币种
     */
    @TableField("currency_code")
    private String currencyCode;

    /**
     * 计算方式 0 按体积
     */
    @TableField("calculate_way")
    private Integer calculateWay;

    /**
     * 最小计费体积
     */
    @TableField("min_bill_volume")
    private Double minBillVolume;

    /**
     * 计算单位 0立方米/天  1立方英尺/天
     */
    @TableField("calculate_unit")
    private Integer calculateUnit;

    /**
     * 批量体积进位 0 1 2 3
     */
    @TableField("full_one_carry_bit")
    private Integer fullOneCarryBit;

    @TableField("tips")
    private String tips;

    @TableField(value = "tenant_id", fill = FieldFill.INSERT)
    private Long tenantId;

    @TableField(value = "delete_flag", fill = FieldFill.INSERT)
    @TableLogic
    private Integer deleteFlag;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "create_by", fill = FieldFill.INSERT)
    private Long createBy;

    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    @TableField(value = "update_by", fill = FieldFill.UPDATE)
    private Long updateBy;

    @TableField("delete_time")
    private Date deleteTime;

    @TableField("delete_by")
    private Long deleteBy;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
